GAME 2 DISCORD BOT/LOG  -  v2.0.0
Falcon Gaming Studios, LLC  -  https://falcongamingstudios.com

Scans your game's chat log and relays in-game chat messages to Discord.
Full instructions: Game-2-Discord-Bot-Manual.pdf (in this folder).

QUICK START
1. Install Node.js 18 or newer (LTS) from https://nodejs.org
2. Create a bot at https://discord.com/developers/applications
   - Bot page: Reset Token, copy the token.
   - OAuth2 > URL Generator: scope "bot", permissions "View Channels" + "Send Messages".
     Open the generated URL and invite the bot to your server.
3. Discord: User Settings > Advanced > Developer Mode ON.
   Right-click your channel > Copy Channel ID.
4. Open config.json and fill in every "ENTER ..." value.
   In paths use forward slashes:  C:/Games/MyGame/Logs/chat.txt
   string_to_search = the exact text that marks the chat you want, e.g. [Guild]
5. Windows: double-click start.bat
   macOS/Linux: npm install, then npm start

FILES
  index.js        The bot.
  config.json     Your settings. Contains your bot token - never share it.
  package.json    Node.js package file (discord.js dependency).
  start.bat       Windows launcher. Installs discord.js on first run.
  FGS-logo.png    Falcon Gaming Studios logo.
  Game-2-Discord-Bot-Manual.pdf   User manual.

WHAT'S NEW IN 2.0.0
  - Updated to discord.js 14 (v12 is no longer supported by Discord).
  - Reads only new text in the log; no longer re-sends old chat at startup.
  - Game chat can no longer ping @everyone, @here, roles or users.
  - Works with any game's chat log: match by marker text, or any layout with custom_regex.
  - Lines without a player name are relayed too.
  - Overlapping checks no longer send duplicate messages.
  - text_to_find now replaces every occurrence, not just the first.
  - Clear error messages for missing settings, bad token or wrong channel.
  - New settings: custom_regex, send_existing_on_start.

SUPPORT
  info@falcongamingstudios.com

LICENSE
Copyright © 2026 - Falcon Gaming Studios, LLC - All Rights Reserved.
This file is free and open source.
It may be used, copied, and redistributed in any form (modified or unmodified), in any project or future works, personal or commercial.
Unmodified copies must keep this copyright notice and permission notice intact.
Modified copies require that the copyright notice above, including this permission notice, be removed or replaced.
THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM ITS USE.
